Swift Package not able to add into the project

Hi There,

I have a strange problem: the Swift package cannot be added to my iOS project. The problem might be due to the project settings, but despite trying for a long time, I still haven't been able to figure it out.

  1. My project is a React Native project and uses CocoaPods.
  2. When I drop the Swift package into my React Native project, the package becomes a folder.
  3. When I drop the Swift package into other iOS projects, it works without any problems.
  4. If I try to use "Package Dependencies" to add the Swift package, it gets stuck on "Preparing to validate..."
  5. My project seems unable to add any Swift packages; it cannot add other Swift packages either.
  6. The Swift package is local. However, it works fine in other projects, even in newly created React Native projects.

The problem might be with my project itself, but I have no idea where to check now. please guide me with any advice, I will appreciate it!

Swift Package not able to add into the project
 
 
Q